﻿using System.Configuration;
using System.Web;
using EOSCRM.Domain;
using EOSCRM.Util;


namespace EOSCRM.Dao
{
    public class BaseDao
    {
        protected EOSCRMDataContext _db;
        protected UserLog userLog;
        public static readonly string Connectionstring = ConfigurationManager.AppSettings[Constants.SETTINGS_CONNECTION];

        public BaseDao()
        {
            var decryptString = Connectionstring; // EncryptUtil.Decrypt(Connectionstring);

           // userLog = HttpContext.Current.Session["_EL_USER"] as UserLog;
            _db = new EOSCRMDataContext(decryptString);
        }
    }
}

